package com.example.foo.admin.web.ftt;

import org.springframework.beans.BeanUtils;

import com.example.foo.UserLevelEnum;
import com.example.foo.ftt.model.FttUser;

public class FttUserVO extends FttUser {

	private static final long serialVersionUID = 1L;

	private final String roleLevelText;

	private final String fttLevelText;

	public FttUserVO(FttUser fttUser) {
		BeanUtils.copyProperties(fttUser, this);
		this.roleLevelText = UserLevelEnum.ofLevelId(fttUser.getRoleLevel()).levelName;
		this.fttLevelText = fttUser.getFttLevel().text;
	}

	public String getRoleLevelText() {
		return roleLevelText;
	}

	public String getFttLevelText() {
		return fttLevelText;
	}

}
